<script setup lang="ts">
import { Modal } from '@idmy/core'
import Create from '@/views/Modal/Create.vue'
import { sleep } from '@idmy/core'

const onCreate = () => {
	Modal.open({
		component: Create,
		title: '创建333',
		onClose(isOk: boolean) {
			console.info(isOk)
		},
	})
}
</script>

<template>
	<a-space>
		<a-button type="primary" @click="onCreate()">创建</a-button>
	</a-space>
</template>

<style scoped></style>
